<style scoped lang="scss">
.user-content-grid {
  width: 10rem;
  height: 20rem;

  .user-content-grid-center {
    width: 10rem;

    ul {
      width: 10rem;

      li {
        width: 3.15rem;
        border: 0.05rem solid #000;
        height: 4.2667rem;
        float: left;
        position: relative;
        margin-right: 0.05rem;
        margin-bottom: 0.05rem;
        overflow: hidden;

        img {
          width: 3.26rem;
          height: 4.2667rem;
        }

        p {
          position: absolute;
          bottom: 0.1rem;
          left: 0.1rem;
          font-size: .32rem;
          display: flex;
          align-items: center;

          i {
            font-size: .32rem;
            margin-right: .1rem;
          }
        }
      }
    }
  }

  .user-content-grid-buttom {
    width: 10rem;
    height: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .32rem;

    p {
      color: #65676e;
    }
  }
}
</style>
<template>
  <div class="user-content-grid">
    <div class="user-content-grid-center">
      <ul>
        <li v-for="item, index in gridArr" :key="item.id" @click="handleClick(index)">
          <img :src="item.Video.videoCover" alt="">
          <!-- 点赞数量 -->
          <p><i class="iconfont icon-aixin"></i>{{ item.WSLCNum.likeNum }}</p>
        </li>
      </ul>
    </div>
    <div class="user-content-grid-buttom">
      <p>暂时没有更多了</p>
    </div>
  </div>
</template>
<script setup>
const props = defineProps({
  gridArr: {
    type: Array,
    default: () => []
  }
})

const emit = defineEmits(['play'])

function handleClick(index) {
  emit('play', index)
}
</script>